﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace StockService
{
    public static class Log
    {
        static readonly EventLog elog ;

         static Log()
         {
             elog = new EventLog("Stock")
                        {
                            Log = "Stock",
                            Source="Stock"
                        };
         }

        internal static void Write(string message)
        {
            elog.WriteEntry(message);
        }
    }
}
